import React from "react";
import { routes } from "./routes";
import { BrowserRouter, useRoutes } from "react-router-dom";

const Router = () => {
  const App = () => {
    const element = useRoutes(routes);
    return element;
  };

  return (
    <BrowserRouter>
      <App></App>
    </BrowserRouter>
  );
};

export default Router;
